<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>商品管理</title>
    <css file="__STATIC__/hdjs/hdui.css"/>
    <js file="__STATIC__/jquery/jquery-1.7.2.min.js"/>
    <js file="__CONTROLLER_VIEW__/js/js.js"/>
    <css file="__STATIC__/bootstrap/css/bootstrap.min.css"/>

</head>
<body>
<div class="wrap">
    <form action="{|U:'List/add'}" method="post" class="form-inline hd-form" >
    <table class="table2">
        <thead>
     
        <tr>
            <td width="30"></td>
                <td>货品id</td>            
                <td>规格</td>
                <td>颜色</td>
                <td>库存</td>
                <td>货号</td>
            
        </tr>

        </thead>
        <tbody>
            


            <foreach from="$data" key="$k" value="$v">
            <tr>
                    <td width="30"></td>
                   <td>{$k}</td>
                    <!-- 循环输出笛卡儿积 -->
                    <foreach from="$v" key="$key" value="$value">          
                        <td>{$value}</td>
                        
                   </foreach>
					<td><input type="text" name="prlist_stock[]"/></td>
                   <td><input type="text" name="prlist_id[]"/></td>              
                   
                </tr>
                
            </tr>
            </foreach>
            <foreach from="$list_id" key="$k" value="$v">
            	<input type="hidden" name="list_id[]" value="{$v}">
            </foreach>
        </tbody>
    </table>
    <div class="position-bottom">
        <input type="hidden"  name="pro_id"    value="{$hd.get.pr_id}"/>
        
        <input type="submit" class="hd-success" value="添加货品"/>
    </div>
    </form>
</div>

</body>
</html>


